return global.display.get_tab_list(Meta.TabList.NORMAL, workspace);
},
- _initialSelection: function(backward, binding) {
- if (binding == 'switch-windows-backward' || backward)
- this._select(this._items.length - 1);
- else if (this._items.length == 1)
- this._select(0);
- else
- this._select(1);
- },
-
_keyPressHandler: function(keysym, action) {
if (action == Meta.KeyBindingAction.SWITCH_WINDOWS) {
this._select(this._next());
this._switcherList = new CtrlAltTabSwitcher(this._items);
},
- _initialSelection: function(backward, binding) {
- if (binding == 'switch-panels') {
- if (backward)
- this._selectedIndex = this._items.length - 1;
- } else if (binding == 'switch-panels-backward') {
- if (!backward)
- this._selectedIndex = this._items.length - 1;
- }
- this._select(this._selectedIndex);
- },
-
_keyPressHandler: function(keysym, action) {
if (action == Meta.KeyBindingAction.SWITCH_PANELS)
this._select(this._next());
this._switcherList = new InputSourceSwitcher(this._items);
},
- _initialSelection: function(backward, binding) {
- if (binding == 'switch-input-source') {
- if (backward)
- this._selectedIndex = this._items.length - 1;
- } else if (binding == 'switch-input-source-backward') {
- if (!backward)
- this._selectedIndex = this._items.length - 1;
- }
- this._select(this._selectedIndex);
- },
-
_keyPressHandler: function(keysym, action) {
if (action == this._action)
this._select(this._next());
},
_initialSelection: function(backward, binding) {
- throw new Error('Not implemented');
+ if (backward)
+ this._select(this._items.length - 1);
+ else if (this._items.length == 1)
+ this._select(0);
+ else
+ this._select(1);
},
show: function(backward, binding, mask) {
this.actor.show();
this.actor.get_allocation_box();
- if (this._items.length > 1)
- this._selectedIndex = 1;
- else
- this._selectedIndex = 0;
-
this._initialSelection(backward, binding);
// There's a race condition; if the user released Alt before